package com.pro.common.service.pay.fallback;

import com.pro.common.api.model.request.pay.PaymentRequest;
import com.pro.common.api.model.request.pay.PaymentResponse;
import com.pro.common.api.pay.intf.PaymentOrderFeignClient;
import com.pro.common.service.pay.service.unit.PaymentUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("")
public class PaymentOrderFeignFallback implements PaymentOrderFeignClient {
    @Autowired
    private PaymentUnitService paymentUnitService;

    /**
     * 发起支付
     */
    @Override
    public PaymentResponse payment(PaymentRequest request) {
        return paymentUnitService.payment(request);
    }
}
